package com.im.pojo;

import java.io.Serializable;

/**
 * 创建消息对象socketMsg
 */
public class SocketMsg implements Serializable {

    private int type;  // 聊天类型 0 群聊 1 单聊
    private String formUser; // 发送者
    private String toUser; // 接收者
    private String msg; // 消息
    private String sessionId; // 频道号

    public String getSessionId() {
        return sessionId == null ? "" : sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getFormUser() {
        return formUser == null ? "" : formUser;
    }

    public void setFormUser(String formUser) {
        this.formUser = formUser;
    }

    public String getToUser() {
        return toUser == null ? "" : toUser;
    }

    public void setToUser(String toUser) {
        this.toUser = toUser;
    }

    public String getMsg() {
        return msg == null ? "" : msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
